<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String appPath = request.getContextPath();
%>

<c:forEach items="${vouchers}" var="voucher">
	<div class="mainw_right7">
		<c:if test="${now>voucher.endDate}">
			<img src="${staticPath}/images/voucher2.png" />
		</c:if>
		<c:if test="${now<=voucher.endDate}">
			<img src="${staticPath}/images/voucher${voucher.state}.png" />
		</c:if>

		<a href="javascript:;" style="width: 500px;">${voucher.name}<br> 满
			<fmt:formatNumber value="${voucher.limitMoney/100}" pattern="#,###.##" />
			减
			<fmt:formatNumber value="${voucher.price/100}" pattern="#,###.##" />
		</a>
		<h2 style="height: 25px; line-height: 25px; padding-top: 30px; width: 250px;">
			过期时间：
			<fmt:formatDate value="${voucher.endDate }" type="both" />
		</h2>

	</div>
</c:forEach>
<input type="hidden" id="pageCount" value="${count}" />
